package com.itheima.controller;

import com.itheima.common.SubjectResult;
import com.itheima.service.HmSubjectsTagsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/tags")
public class QuestionTagController {
    @Autowired
    private HmSubjectsTagsService hmSubjectsTagsService;

    @GetMapping("/simple")
    public List<SubjectResult> SimpleTag(Integer subjectID){
        List<SubjectResult> resultList = hmSubjectsTagsService.SimpleTag(subjectID);
        return resultList;
    }
}
